<?php
	echo '<div id="bookshop-mybooks">
			<h3>My Textbooks</h3>
			<p>Welcome! <br /> <br />
			You will find your personalised Textbook List on this page. This information is compiled using your currently enrolled subjects in eStudent.</p>
			';

	// here is all the code to display the static info, not database driven as would be in production
	
	$genericbook = '<div id="bookshop-mybooks-generic">
					<table>
						<tr>
							<td>Author:</td>
							<td>SURNAME</td>
						</tr>
						<tr>
							<td>Publisher:</td>
							<td>EXAMPLE</td>
						</tr>
						<tr>
							<td>Edition:</td>
							<td>3</td>
						</tr>
						<tr>
							<td>ISBN/APN:</td>
							<td>0735619670/9780735619678</td>
						</tr>
						<tr>
							<td>RRP:</td>
							<td>$99.95</td>
						</tr>
						<tr>
							<td>JCU Price:</td>
							<td>$87.96</td>
						</tr>
						<tr>
							<td>Stock:</td>
							<td>Currently in stock</td>
						</tr>
						<tr>
							<td>Order Status:</td>
							<td>Not on order</td>
						</tr>
					</table>
					</div>
					';
	
	if (isset($_GET['code'])) $code = $_GET['code'];
	else $code = "";
	
	// cp2013 vars
	if ($code == "cp2013pre") $cp2013pre = "<li class='minus'><a href='?mybooks'><strong>Code Complete</strong></a></li>" . $genericbook;
	else $cp2013pre = "<li><a href='?mybooks&code=cp2013pre'>Code Complete</a></li>";
	
	if ($code == "cp2013rec") $cp2013rec = "<li class='minus'><a href='?mybooks'><strong>Applying UML and Patterns:An Introduction to Object Oriented Analysis and Design and Iterative Development</strong></a></li>" . $genericbook;
	else $cp2013rec = "<li><a href='?mybooks&code=cp2013rec'>Applying UML and Patterns:An Introduction to Object Oriented Analysis and Design and Iterative Development</a></li>";
	
	// cp2017 vars
	if ($code == "cp2017pre") $cp2017pre = "<li class='minus'><a href='?mybooks'><strong>Electronic Commerce</strong></a></li>" . $genericbook;
	else $cp2017pre = "<li><a href='?mybooks&code=cp2017pre'>Electronic Commerce</a></li>";
	
	// cp2402 vars
	if ($code == "cp2402pre") $cp2402pre = "<li class='minus'><a href='?mybooks'><strong>Operating System Concepts With Java 8E</strong></a></li>" . $genericbook;
	else $cp2402pre = "<li><a href='?mybooks&code=cp2402pre'>Operating System Concepts With Java 8E</a></li>";
	
	// ma1401 vars
	if ($code == "ma1401pre") $ma1401pre = "<li class='minus'><a href='?mybooks'><strong>MA1401 Statistics and Data Analysis 1 Workbook</strong></a></li>" . $genericbook;
	else $ma1401pre = "<li><a href='?mybooks&code=ma1401pre'>MA1401 Statistics and Data Analysis 1 Workbook</a></li>";
	
	if ($code == "ma1401rec") $ma1401rec = "<li class='minus'><a href='?mybooks'><strong>Elementary Statistics with Multimedia Study Guide</strong></a></li>" . $genericbook;
	else $ma1401rec = "<li><a href='?mybooks&code=ma1401rec'>Elementary Statistics with Multimedia Study Guide</a></li>";
	
	
	
	// now to display each of these
	
	echo '<table>
			<tr>
				<td><strong>CP2013<br />
				Software Engineering</strong></td>
				<td><strong>CP2017<br />
				Interactive e-Business</strong></td>
				<td><strong>CP2402<br />
				Hardware and Software Fundamentals</strong></td>
				<td><strong>MA1401<br />
				Statistics and Data Analysis 1</strong></td>
			</tr>
			<tr>
				<td>
					<ul id="containerul" class="plus">
					' . $cp2013pre . $cp2013rec . '
					</ul>
				</td>
				<td>
					<ul id="containerul" class="plus">
					' . $cp2017pre . '
					</ul>
				</td>
				<td>
					<ul id="containerul" class="plus">
					' . $cp2402pre . '
					</ul>
				</td>
				<td>
					<ul id="containerul" class="plus">
					' . $ma1401pre . '
					' . $ma1401rec . '
					</ul>
				</td>
			</tr>
		</table>
		';
	
	
	
	echo '</div>
			';
?>